package nml.mail.reg.await;

import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  hsit_edu_cn extends Reg{

	public void reg(String username, String password) {		
		

		String url = "http://mail.hsit.edu.cn/php/report/osignup.php";
		get(url);
		dr.findElement(By.id("yes")).click();
		sleep(1000);
		
		
		
		
		dr.findElement(By.name("LoginName")).sendKeys(username);
		dr.findElement(By.name("Password")).sendKeys(password);
		dr.findElement(By.name("Confirm")).sendKeys(password);
		
		dr.findElement(By.name("FirstName")).sendKeys("李达");

		dr.findElement(By.name("question")).sendKeys("我不知道");
		dr.findElement(By.name("answer")).sendKeys("我不知道hh");
		
		
	
		dr.findElement(By.name("validate")).click();
		
	 
	}

	public static void main(String[] args) {
		new hsit_edu_cn().reg("qq331798654", "qq3131798654");
	}
	
	
}
